// Attribution:  Some of the content view logic was copied or inspired from the custom window article on Matt Gallagher's excellent Cocoa wih Love blog (http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html)

#import <Cocoa/Cocoa.h>


typedef enum {
	SMRPopoverArrowDirectionUnknown = 0,
	SMRPopoverArrowDirectionLeft = 1u << 0,
	SMRPopoverArrowDirectionRight = 1u << 1,
	SMRPopoverArrowDirectionDown = 1u << 2,
	SMRPopoverArrowDirectionUp = 1u << 3,
	SMRPopoverArrowDirectionAny = SMRPopoverArrowDirectionUp | SMRPopoverArrowDirectionDown | SMRPopoverArrowDirectionLeft | SMRPopoverArrowDirectionRight
} SMRPopoverArrowDirection;


@interface SMRPopoverFrameView : NSView {
}

@property (nonatomic, assign) CGFloat borderWidth;
@property (nonatomic, assign) CGFloat arrowPosition;
@property (nonatomic, assign) SMRPopoverArrowDirection arrowDirection;
@property (nonatomic, assign) NSSize arrowSize;
@property (nonatomic, retain) NSGradient *backgroundGradient;
@property (nonatomic, assign) CGFloat outerCornerRadius;

-(CGFloat)minimumArrowPositionFromEdge;

@end
